home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6056 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: realloc equivalent in C++
  5. Date: 11 Feb 1996 12:10:59 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4fkmcj$olk@news1.usa.pipeline.com>
  8. References: <4fgir1$pri@theory.tc.cornell.edu>
  9. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline USA v3.3.0
  14.  
  15. On Feb 09, 1996 22:45:53 in article <realloc equivalent in C++>,
  16. 'hzhou@r26n05.tc.cornell.edu (Honbo Zhou)' wrote: 
  17.  
  18.  
  19. >Is there anything in C++ equvalent to realloc in C which can be used 
  20. >to increase allocated memory? Can't find this even in C++ books which 
  21. >talk about memory management specifically. Thanks. Honbo  
  22.  
  23. C++ supports standard C library functions to include malloc, realloc,  
  24. calloc, etc..  Just remember that memory allocated with C functions 
  25. must be disposed of with C library function free(). 
  26.  
  27. -- 
  28. Pete Grant 
  29. Kalevi, Inc. 
  30. Object Oriented Software Development
  31.